<?php
    session_start();
    include_once '../connectBDD.php';
    
    $idEvent = $_GET['id_event'];
    
    if(isset($_GET['id_event'])){
        $query = "delete from event_user where id_event = $idEvent and login_user = '".$_SESSION['login']."'";
        $result = mysql_query($query) or die(mysql_error());
        echo "true";
    }
?>
